<template>
    <div>
    <h>{{rule}}我是首页</h>
    <input v-model="food"></input>
        <router-link to="/demo/abou">新闻</router-link>
        <router-link to="/demo/user">信息</router-link>
        <router-view></router-view>
    </div>
</template>

<script>
    export default {
        name: "demo",
        data(){
            return{
                rule:'fasfsaf',
                food:'法师法法师'
            }
        },
        methods:{

        }
    }
</script>

<style scoped>

</style>
